import { S } from '../s';
import { IPSSubViewType } from './ipssub-view-type';
import { PSModelObjectImpl } from '../psmodel-object-impl';

export class PSSubViewTypeImpl
  extends PSModelObjectImpl
  implements IPSSubViewType
{
  get codeName(): string {
    return this.M.codeName;
  }

  get nameMode(): 'APPEND' | 'REPLACE' {
    return this.M.nameMode;
  }

  get typeCode(): string {
    return this.M.typeCode;
  }

  get viewModel(): IModel {
    return this.M.viewModel;
  }

  get viewType(): string {
    return this.M.viewType;
  }

  get extendStyleOnly(): boolean {
    return this.M.extendStyleOnly != null ? this.M.extendStyleOnly : false;
  }

  get replaceDefault(): boolean {
    return this.M.replaceDefault != null ? this.M.replaceDefault : false;
  }
  get cls(): string {
    return 'PSSubViewTypeImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._277) return true;
    return super.instanceof(cls);
  }
}
